Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #236 fix indexing in mode method regridding #237

Merged
merged 6 commits into from
Apr 29, 2024

Conversation

JoerivanEngelen
Copy link
Contributor

Fixes #236

There was some erroneous indexing going on in regrid.reduce.mode method: the provided indexes were being ignored in some places and instead indexes starting from 0 were generated. This resulted in the method having a tendency to repeat the first value across the target grid. I also added some tests which show the bug being fixed.

Working on updating the changelog.

@JoerivanEngelen JoerivanEngelen added the bug Something isn't working label Apr 29, 2024
@Huite Huite merged commit 97cf167 into main Apr 29, 2024
11 checks passed
@Huite Huite deleted the issue_#236_fix_indexing_in_mode_method_regridding branch April 29, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"mode" method in regridder keeps repeating first value of source grid over target grid
2 participants